package com.shycloud.mido.music.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shycloud.mido.music.domain.MisRedeemMusicCollection;
import com.shycloud.mido.music.vo.RedeemVO;
import org.apache.ibatis.annotations.Param;

/**
 * 兑换曲谱 mapper
 *
 * @author nianhua.jiang
 * @date 2020/5/27 9:55
 */
public interface MisRedeemMusicCollectionMapper extends BaseMapper<MisRedeemMusicCollection> {

	/**
	 * 分页获取【兑换曲谱】信息
	 *
	 * @param page
	 * @param phone
	 * @param bookNumber
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.shycloud.mido.music.domain.MisRedeemMusicCollection>
	 * @author nianhua.jiang
	 * @date 2020/5/27 9:54
	 */
	IPage<RedeemVO> getRedeemMusicCollection(@Param("page") Page page, @Param("phone") String phone, @Param("bookNumber") String bookNumber);

	/**
	 * 获取有声图书数量
	 *
	 * @param
	 * @return java.lang.Integer
	 * @author nianhua.jiang
	 * @date 2020/5/28 9:43
	 */
	Integer getBookCount();

}
